<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Buzon de Sugerencias</title>
        <link href="styles/style1.css" rel="stylesheet"/>
    </h:head>
    <h:body>
        <h:link value="Inicio" outcome="index" />
        <h:form>
            <h:outputLabel for="title" value="Titulo: " styleClass="suggestionLabel" />
            <p:inputText id="title" value="#{suggestionForm.title}" styleClass="suggestionInput"  />
            <br/>
            <br/>
            <h:outputLabel for="text" value="Sugerencia: " styleClass="suggestionLabel" />
            <p:inputTextarea id="text" value="#{suggestionForm.text}" maxlength="2048" cols="100" rows="20" styleClass="suggestionInput" />
            <br/>
            <p:commandButton value="Submit" action="#{suggestionForm.submit()}" update="text,title" />
            <p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" />
        </h:form>
    </h:body>
</html>

